#!/usr/bin/env python
# -*- coding:utf-8 -*-
import base
from web import models
import datetime
from django_redis import get_redis_connection

def run_redis():
    conn = get_redis_connection()
    key = 'payment_haha'
    conn.set(key, str(datetime.datetime.now()), ex=10)
    
    conn.delete(key)
    conn.delete('slk')
    value = conn.get(key)
    print('value=%s'%value)
    
    

if __name__ == '__main__':
    # init_filerepository()
    # init_IssueType()
    run_redis()
    print('Done!')